(function($, im, doc) {
	function recvTrade() {
		var dataid = this.getAttribute('data-path');
		var fromtype = im.roomType == 2 ? 4 : 3;
		var url = "../../pages/wallet/recvTrade.html?detailid=" + dataid + "&to_id=" + im.uid + "&fromtype=" + fromtype + "&tradeid=" + dataid + "&roomid=" + im.roomId;
		//console.log(url);
		//im.playsendSound('zz');
		mui.openWindow({
			url: url,
			id: 'pages/wallet/recvTrade.html',
			extras: {
				roomId: im.roomId
			}
		});
	}
	$.plusReady(function() {
		$('#msg-list').on('tap', '.chatin-interactivebox', recvTrade);
		$('#msg-list').on('tap', '.chatin-interactiveboxleft', recvTrade);
	});

}(mui, im, document));